package com.dianqiu.common.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.dianqiu.base.bean.BaseTO;

/**
 * DqClubs entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dq_clubs", catalog = "dq_dev")
public class DqClubsTO  extends BaseTO implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer clbId;
	private DqCityTO dqCity;
	private DqStadiumsTO dqStadiums;
	private String clbName;
	private String clbEn;
	private String clbSc;
	private String clbTc;
	private String clbDescription;
	private String clbFoundDate;
	private String clbLogo;
	private String clbOfficialLink;
	private String clbAddress1;
	private String clbAddress2;
	private String clbAddress3;
	private String clbEmail;
	
	private Set<DqMatchHistTO> dqMatchHistsForAwayClbId = new HashSet<DqMatchHistTO>(
			0);
	private Set<DqLeagueMatchesTO> dqLeagueMatchesesForAwayClbId = new HashSet<DqLeagueMatchesTO>(
			0);
	private Set<DqMatchHistTO> dqMatchHistsForHomeClbId = new HashSet<DqMatchHistTO>(
			0);
	private Set<DqMatchTO> dqMatchsForHomeClbId = new HashSet<DqMatchTO>(0);
	private Set<DqLeagueClubsTO> dqLeagueClubses = new HashSet<DqLeagueClubsTO>(0);
	private Set<DqLeagueMatchesTO> dqLeagueMatchesesForHomeClbId = new HashSet<DqLeagueMatchesTO>(
			0);
	private Set<DqClubPlayersTO> dqClubPlayerses = new HashSet<DqClubPlayersTO>(0);
	private Set<DqMatchTO> dqMatchsForAwayClbId = new HashSet<DqMatchTO>(0);

	@Id
	@Column(name = "CLB_ID", unique = true, nullable = false)
	public Integer getClbId() {
		return this.clbId;
	}

	public void setClbId(Integer clbId) {
		this.clbId = clbId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CITY_ID")
	public DqCityTO getDqCity() {
		return this.dqCity;
	}

	public void setDqCity(DqCityTO dqCity) {
		this.dqCity = dqCity;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "STADIUMS_ID")
	public DqStadiumsTO getDqStadiums() {
		return this.dqStadiums;
	}

	public void setDqStadiums(DqStadiumsTO dqStadiums) {
		this.dqStadiums = dqStadiums;
	}

	@Column(name = "CLB_NAME", length = 45)
	public String getClbName() {
		return this.clbName;
	}

	public void setClbName(String clbName) {
		this.clbName = clbName;
	}

	@Column(name = "CLB_EN", nullable = false, length = 200)
	public String getClbEn() {
		return this.clbEn;
	}

	public void setClbEn(String clbEn) {
		this.clbEn = clbEn;
	}

	@Column(name = "CLB_SC", length = 200)
	public String getClbSc() {
		return this.clbSc;
	}

	public void setClbSc(String clbSc) {
		this.clbSc = clbSc;
	}

	@Column(name = "CLB_TC", length = 200)
	public String getClbTc() {
		return this.clbTc;
	}

	public void setClbTc(String clbTc) {
		this.clbTc = clbTc;
	}

	@Column(name = "CLB_DESCRIPTION", length = 2000)
	public String getClbDescription() {
		return this.clbDescription;
	}

	public void setClbDescription(String clbDescription) {
		this.clbDescription = clbDescription;
	}

	@Column(name = "CLB_FOUND_DATE", length = 10)
	public String getClbFoundDate() {
		return this.clbFoundDate;
	}

	public void setClbFoundDate(String clbFoundDate) {
		this.clbFoundDate = clbFoundDate;
	}

	@Column(name = "CLB_LOGO", length = 200)
	public String getClbLogo() {
		return this.clbLogo;
	}

	public void setClbLogo(String clbLogo) {
		this.clbLogo = clbLogo;
	}

	@Column(name = "CLB_OFFICIAL_LINK", length = 200)
	public String getClbOfficialLink() {
		return this.clbOfficialLink;
	}

	public void setClbOfficialLink(String clbOfficialLink) {
		this.clbOfficialLink = clbOfficialLink;
	}

	@Column(name = "CLB_ADDRESS_1", length = 200)
	public String getClbAddress1() {
		return this.clbAddress1;
	}

	public void setClbAddress1(String clbAddress1) {
		this.clbAddress1 = clbAddress1;
	}

	@Column(name = "CLB_ADDRESS_2", length = 200)
	public String getClbAddress2() {
		return this.clbAddress2;
	}

	public void setClbAddress2(String clbAddress2) {
		this.clbAddress2 = clbAddress2;
	}

	@Column(name = "CLB_ADDRESS_3", length = 200)
	public String getClbAddress3() {
		return this.clbAddress3;
	}

	public void setClbAddress3(String clbAddress3) {
		this.clbAddress3 = clbAddress3;
	}

	@Column(name = "CLB_EMAIL", length = 100)
	public String getClbEmail() {
		return this.clbEmail;
	}

	public void setClbEmail(String clbEmail) {
		this.clbEmail = clbEmail;
	}

	

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqClubsByAwayClbId")
	public Set<DqMatchHistTO> getDqMatchHistsForAwayClbId() {
		return this.dqMatchHistsForAwayClbId;
	}

	public void setDqMatchHistsForAwayClbId(
			Set<DqMatchHistTO> dqMatchHistsForAwayClbId) {
		this.dqMatchHistsForAwayClbId = dqMatchHistsForAwayClbId;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqClubsByAwayClbId")
	public Set<DqLeagueMatchesTO> getDqLeagueMatchesesForAwayClbId() {
		return this.dqLeagueMatchesesForAwayClbId;
	}

	public void setDqLeagueMatchesesForAwayClbId(
			Set<DqLeagueMatchesTO> dqLeagueMatchesesForAwayClbId) {
		this.dqLeagueMatchesesForAwayClbId = dqLeagueMatchesesForAwayClbId;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqClubsByHomeClbId")
	public Set<DqMatchHistTO> getDqMatchHistsForHomeClbId() {
		return this.dqMatchHistsForHomeClbId;
	}

	public void setDqMatchHistsForHomeClbId(
			Set<DqMatchHistTO> dqMatchHistsForHomeClbId) {
		this.dqMatchHistsForHomeClbId = dqMatchHistsForHomeClbId;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqClubsByHomeClbId")
	public Set<DqMatchTO> getDqMatchsForHomeClbId() {
		return this.dqMatchsForHomeClbId;
	}

	public void setDqMatchsForHomeClbId(Set<DqMatchTO> dqMatchsForHomeClbId) {
		this.dqMatchsForHomeClbId = dqMatchsForHomeClbId;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqClubs")
	public Set<DqLeagueClubsTO> getDqLeagueClubses() {
		return this.dqLeagueClubses;
	}

	public void setDqLeagueClubses(Set<DqLeagueClubsTO> dqLeagueClubses) {
		this.dqLeagueClubses = dqLeagueClubses;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqClubsByHomeClbId")
	public Set<DqLeagueMatchesTO> getDqLeagueMatchesesForHomeClbId() {
		return this.dqLeagueMatchesesForHomeClbId;
	}

	public void setDqLeagueMatchesesForHomeClbId(
			Set<DqLeagueMatchesTO> dqLeagueMatchesesForHomeClbId) {
		this.dqLeagueMatchesesForHomeClbId = dqLeagueMatchesesForHomeClbId;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqClubs")
	public Set<DqClubPlayersTO> getDqClubPlayerses() {
		return this.dqClubPlayerses;
	}

	public void setDqClubPlayerses(Set<DqClubPlayersTO> dqClubPlayerses) {
		this.dqClubPlayerses = dqClubPlayerses;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqClubsByAwayClbId")
	public Set<DqMatchTO> getDqMatchsForAwayClbId() {
		return this.dqMatchsForAwayClbId;
	}

	public void setDqMatchsForAwayClbId(Set<DqMatchTO> dqMatchsForAwayClbId) {
		this.dqMatchsForAwayClbId = dqMatchsForAwayClbId;
	}

}